import {
	createRouter,
	createWebHashHistory
} from 'vue-router'

const routersData = [{
		path: '/introduce',
		name: 'introduce',
		title: '介绍',
		component: () => import('@/pages/introduce/introduce.vue'),
		meta: {
			index: 0
		}
	},
	{
		path: '/dev-svg-image',
		name: 'dev-svg-image',
		title: 'dev-svg-image 图片',
		component: () => import('@/pages/dev-svg-image/dev-svg-image.vue'),
	},
	{
		path: '/dev-list-layout',
		name: 'dev-list-layout',
		title: 'dev-list-layout 列表',
		component: () => import('@/pages/dev-list-layout/dev-list-layout.vue'),
	},
	{
		path: '/dev-navbar',
		name: 'dev-navbar',
		title: 'dev-navbar 顶部导航栏',
		component: () => import('@/pages/dev-navbar/dev-navbar.vue'),
	},
	{
		path: '/dev-ruler',
		name: 'dev-ruler',
		title: 'dev-ruler 刻度尺',
		component: () => import('@/pages/dev-ruler/dev-ruler.vue'),
	},
	// {
	// 	path: '/md5',
	// 	name: 'md5',
	// 	title: 'md5加密',
	// 	component: () => import('@/pages/md5/md5.vue'),
	// },
	// {
	// 	path: '/checkData',
	// 	name: 'checkData',
	// 	title: 'checkData数据校验',
	// 	component: () => import('@/pages/checkData/checkData.vue'),
	// },
	// {
	// 	path: '/treeList',
	// 	name: 'treeList',
	// 	title: 'treeList树状图列表',
	// 	component: () => import('@/pages/treeList/treeList.vue'),
	// },
	// {
	// 	path: '/emptyBox',
	// 	name: 'emptyBox',
	// 	title: 'emptyBox空盒子',
	// 	component: () => import('@/pages/emptyBox/emptyBox.vue'),
	// },
	// {
	// 	path: '/slidingMonitor',
	// 	name: 'slidingMonitor',
	// 	title: 'slidingMonitor滑动监听',
	// 	component: () => import('@/pages/slidingMonitor/slidingMonitor.vue'),
	// },
	// {
	// 	path: '/pullUpLoading',
	// 	name: 'pullUpLoading',
	// 	title: 'pullUpLoading上拉加载',
	// 	component: () => import('@/pages/pullUpLoading/pullUpLoading.vue'),
	// },
	// {
	// 	path: '/dragBox',
	// 	name: 'dragBox',
	// 	title: 'dragBox拖拽盒子',
	// 	component: () => import('@/pages/dragBox/dragBox.vue'),
	// },{
	// 	path: '/flowChart',
	// 	name: 'flowChart',
	// 	title: 'flowChart流程图',
	// 	component: () => import('@/pages/flowChart/flowChart.vue'),
	// },
	// {
	// 	path: '/filter',
	// 	name: 'filter',
	// 	title: 'filter过滤器',
	// 	component: () => import('@/pages/filter/filter.vue'),
	// },
	// {
	// 	path: '/excelExport',
	// 	name: 'excelExport',
	// 	title: 'excelExport导出表格',
	// 	component: () => import('@/pages/excelExport/excelExport.vue'),
	// },
	// {
	// 	path: '/mergeCell',
	// 	name: 'mergeCell',
	// 	title: 'mergeCell合并单元格',
	// 	component: () => import('@/pages/mergeCell/mergeCell.vue'),
	// },
	// {
	// 	path: '/autograph',
	// 	name: 'autograph',
	// 	title: 'autograph签名',
	// 	component: () => import('@/pages/autograph/autograph.vue'),
	// },
	
	
	
	
	
	
	{
		path: '/',
		redirect: '/introduce'
	}
]

const router = createRouter({
	history: createWebHashHistory(), // hash模式：createWebHashHistory，history模式：createWebHistory
	routes: routersData
})

export default {
	router,
	routersData
}
